   body(style='padding-top: 70px;')
      div.navbar.navbar-inverse.navbar-fixed-top(role='navigation')
         div.container-fluid
            div.navbar-header
               button.navbar-toggle(type='button', data-toggle='collapse', data-target='#myNavbarGroup')
                  span.sr-only Toggle navigation
                  span.icon-bar
                  span.icon-bar
                  span.icon-bar
               a.navbar-brand(href='/') Home
            
            div.collapse.navbar-collapse#myNavbarGroup
               ul.nav.navbar-nav.navbar-left
                  li: a(href='/messages/list') Message Board
                  //li: a(href='/clubs/list') Clubs

                  li.dropdown
                     a.dropdown-toggle(href='#', data-toggle='dropdown') Admin
                        span.caret
                     ul.dropdown-menu(role='menu')
                        li: a(href="/users/list") Users

                  if(user && !user.club || !user)
                     li: a(href='/clubs/create') Create a club
                  else
                     li: a(href='/clubs/detail/' + user.club._id) Manage my club
                     li: a(href='/timelines/list/' + user._id) Timeline

                  li: form.navbar-form.navbar-left(role='search',action='/clubs/list',method='post')
                     div.form-group
                        input.form-control(type='text', placeholder='Search clubs', name='keyword')
                        button.btn.btn-default(type='submit')= 'Search clubs'


               ul.nav.navbar-nav.navbar-right
                  if(user)
                     li.dropdown
                        a.dropdown-toggle(href='#', data-toggle='dropdown')= user.firstname + ' ' + user.lastname
                           span.caret
                        ul.dropdown-menu(role='menu')
                           li: a(href='/users/profile/' + user._id) Profile
                           li: a(href='/users/logout') Logout
                  else
                     li: a(href='/users/signup') Register
                     li: a(href='/users/login') Login



   
      div.container
         block content
